package com.yfbao.horizon.model;

import java.io.Serializable;

public class SingleData<T> implements Serializable {
    private static final long serialVersionUID = 2120312638922106459L;
    private T content;

    public SingleData() {
    }

    public static <T> SingleData<T> from(T data) {
        SingleData<T> singleData = new SingleData();
        singleData.setContent(data);
        return singleData;
    }

    public T getContent() {
        return this.content;
    }

    public void setContent(T content) {
        this.content = content;
    }
}
